﻿package com.bizmlib.utils
{
	import flash.events.EventDispatcher;
	import flash.events.Event;
	
	
	[Event(name="change", type="flash.events.Event")]
	

	public class ValueHolder extends EventDispatcher
	{
		private var __value:*;
		
		
		public function get value():*
		{
			return __value;
		}
		public function set value(newValue:*):void
		{
			if(value==newValue)
				return;
			__value = newValue;
			dispatchEvent(new Event(Event.CHANGE, false, true));
		}
		
		
		override public function toString():String
		{
			return "[ValueHolder	value:" + value + "]";
		}
	}
}